package kr.hkit.powerjava.chapter5.work;

import java.util.Scanner;

public class Exercise8 {
	public static void main(String[] args) {
		boolean result;
		//1
		int house = 5;
		int father = 48;
		int family = 2;
		//2
		int age = 9;
		int cm = 159;
		boolean parent = false;
		//3
		double hakjum = 3.0;
		int toefl = 300;
		int toeic = 700;
		//1
		result = (house >= 3 && age >= 40 && family >= 3);
		System.out.println(result);
		//2
		result = (age <= 6 && cm > 150) || (age >= 6 && parent);
		System.out.println(result);
		//3
		result = hakjum >= 3.0 && (toefl >= 300) || (toeic >= 700);
		System.out.println(result);
		
	}
}
